home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pcv06n01.zip / ADDTOIT.DOC < prev    next >
Text File  |  1993-06-07  |  2KB  |  54 lines

  1. ADDTOIT.DOC        January 1993       Jeff Prosise/Dale Lewallen
  2. ----------------------------------------------------------------
  3. Purpose:       Extend path environment variable to any length.
  4.  
  5. Format:        ADDTOIT [drive:] [path]
  6.  
  7. Usage:         ADDTOIT lets you append additional directory names
  8.                to the end of your path environment variable set
  9.                up in your AUTOEXEC.BAT. It lets you break up a 
  10.                long PATH command into several commands. For
  11.                example, to render a path of 
  12.                
  13.                     C:\DOS;C:\WINDOWS;C:\MASM\BIN;
  14.  
  15.                use the following syntax:
  16.  
  17.                     PATH=C:\DOS;C:\WINDOWS;
  18.                     ADDTOIT C:\MASM\BIN
  19.  
  20.                or even:
  21.  
  22.                     PATH=C:\DOS;
  23.                     ADDTOIT C:\WINDOWS
  24.                     ADDTOIT C:\MASM\BIN
  25.  
  26. Remarks:       By breaking a long PATH statement into smaller
  27.                components that fit within DOSs 127-character
  28.                limit on individual commands, you can create PATH
  29.                strings that are limited only by the amount of 
  30.                free space If ADDTOIT displays the "Insufficient
  31.                environment space" error message, increase the
  32.                environment size with a SHELL statement in
  33.                CONFIG.SYS.
  34.  
  35.                Another error message you might see from ADDTOIT
  36.                is "PATH variable not found". This means that the
  37.                environment currently contains no PATH string.
  38.  
  39.                (ADDTOIT can't create a path statement; it can
  40.                only add directory names to an existing PATH.)
  41.  
  42.                One annoying drawback to DOSs SET and PATH 
  43.                commands is that they will display only the first
  44.                127 characters of the PATH, even though DOS uses
  45.                the full ADDTOIT path when it searches your hard
  46.                disk for an executable file.
  47.  
  48. Comments:      Use ADDTOIT in moderation. Long PATH strings slow
  49.                DOS down, and the later a directory name appears
  50.                in a PATH string, the longer it takes DOS to find
  51.                a program file in that directory. Keep your PATH 
  52.                statements as short as possible.
  53.  
  54.